package com.redsoil.house.ui.property.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.redsoil.house.R;
import com.redsoil.house.base.BaseViewHolderTSK;
import com.redsoil.house.model.bean.IncomeRoomVO;
import com.redsoil.house.model.bean.OnePropertyVO;

import java.util.List;

/**
 * Created by weidingqiang on 2018/12/18.
 */

public class PropertyIncomeAdapter extends BaseQuickAdapter<IncomeRoomVO,BaseViewHolderTSK> {

    public PropertyIncomeAdapter(int layoutResId, List<IncomeRoomVO> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolderTSK helper, IncomeRoomVO item) {
        helper.setBackgroundRes(R.id.property_info_item_layout,R.drawable.shape_bottom_edge);
        helper.setText(R.id.property_info_title,item.getTitle());
        helper.setText(R.id.property_info_value,item.getLabel());

    }
}
